package cn.stylefeng.guns.modular.car.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.util.Date;
import java.math.BigDecimal;

/**
 * 封装类
 *
 * @author xbz
 * @date 2023/04/07 14:21
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CarRequest extends BaseRequest {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("id")
    private Integer id;

    /**
     * 车辆名称
     */
    @ChineseDescription("车辆名称")
    private String name;

    /**
     * 车辆品牌
     */
    @ChineseDescription("车辆品牌")
    private Integer brandId;

    /**
     * 车辆拥有者id
     */
    @ChineseDescription("车辆拥有者id")
    private Long uid;
    /**
     * 车辆图片
     */
    @ChineseDescription("车辆图片")
    private String img;
    /**
     * 国标
     */
    @ChineseDescription("国标")
    private String gb;

    /**
     * 价格
     */
    @ChineseDescription("价格")
    private BigDecimal price;

    /**
     * 购买时间
     */
    @ChineseDescription("购买时间")
	private String buyDate;

}
